<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../5.25/vue.js"></script>
</head>
<body>
    <div id="app">
        <p>我是主元素</p>{{title}}
    </div>
    <div id="app1">
        <p>我是主元素的基础上扩展内容：</p>
        {{title}}
    </div>

    <script>
        var Vue2 = Vue.extend({
            data() {
                return {
                    title: '我是扩展当中的变量'

                }
            }
        })

        var vm = new Vue({
            el:"#app",
        })
        var vm = new Vue2({
            el:"#app1",
        })
    </script>
</body>
</html>